package zxq.rollcall.course.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 老师签到记录得表
 * </p>
 *
 * @author Yanghu
 * @since 2020-01-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SYSTEM_TEACHER_SIGN_TABLE")
public class SystemTeacherSignTableEntity extends Model<SystemTeacherSignTableEntity> {

    private static final long serialVersionUID=1L;

    /**
     * 签到id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 签到的时间
     */
    @TableField(insertStrategy = FieldStrategy.NOT_EMPTY)
    private String signDay;

    /**
     * 课程id
     */
    @TableField(insertStrategy = FieldStrategy.NOT_EMPTY)
    private Integer courseId;

    /**
     * 签到的时间戳
     */
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
